fix maps javascript api deprecation warning. (#914)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Mon, 22 Aug 2022 13:19:52 +0000 (07:19 -0600)
committerGitHub <noreply@github.com>
Mon, 22 Aug 2022 13:19:52 +0000 (07:19 -0600)
js: google.maps.event.addDomListener() is deprecated, use the standard addEventListener() method instead: https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener

gui/gmapbase.html

index af37b8168d4fc27b8faeb02bba21de1e26448e4b..15a50f8be2019c7be8d70fd60c392da0ab161e09 100644 (file)
@@ -155,7 +155,7 @@ function setupWebChannel() {
     }
 }
 
-google.maps.event.addDomListener(window, "load", initialize);
+window.addEventListener("load", initialize);
 
     </script>